package com.ourteam.education.dao;
/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2019-09-22 15:15:06
  * Warning ! This file will be overwrite when regenerate !
  * 
 */
import org.apache.commons.lang.StringUtils;
public class Classroom implements java.io.Serializable {
    
    public Classroom() {
		super();
	}
	
		
		
		
		
		
	private long id;	
	
	/**
	 * Attribute id Be Seted Falg
	 */
	private boolean idSetted = false;
	
		/**
	 * Attribute id is Null Falg
	 */
	private boolean idNull = false;
	
	   
    /**
	 * Get id
	 * 
	 * @return long
	 */
	final public long getId(){
	    
				
		return id;
				
	}
	
	/**
	 * Set id
	 * 
	 * @param long
	 */
	final public void setId(long id ){
		
				
		this.id = id;
				
		this.idSetted = true;
		
				
				
		this.setIdNull(false);
				
				
	}
	
	/**
	 * Get id Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isIdSetted(){
		return this.idSetted;
	}
	
		
	/**
	 * Set id Null
	 * 
	 */
	final public void setIdNull(){
			
		this.idNull = true;
		
	}	
	
	final public void setIdNull(boolean aNullFlag){
			
		this.idNull = aNullFlag;
		
	}	
	
	final public boolean isIdNull(){
			
		return this.idNull;
		
	}
	
    	
	   
		
		
		
	private long campusId;	
	
	/**
	 * Attribute campusId Be Seted Falg
	 */
	private boolean campusIdSetted = false;
	
		/**
	 * Attribute campusId is Null Falg
	 */
	private boolean campusIdNull = false;
	
	   
    /**
	 * Get campusId
	 * 
	 * @return long
	 */
	final public long getCampusId(){
	    
				
		return campusId;
				
	}
	
	/**
	 * Set campusId
	 * 
	 * @param long
	 */
	final public void setCampusId(long campusId ){
		
				
		this.campusId = campusId;
				
		this.campusIdSetted = true;
		
				
				
		this.setCampusIdNull(false);
				
				
	}
	
	/**
	 * Get campusId Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isCampusIdSetted(){
		return this.campusIdSetted;
	}
	
		
	/**
	 * Set campusId Null
	 * 
	 */
	final public void setCampusIdNull(){
			
		this.campusIdNull = true;
		
	}	
	
	final public void setCampusIdNull(boolean aNullFlag){
			
		this.campusIdNull = aNullFlag;
		
	}	
	
	final public boolean isCampusIdNull(){
			
		return this.campusIdNull;
		
	}
	
    	
	   
		
		
		
	private String classroomName;	
	
	/**
	 * Attribute classroomName Be Seted Falg
	 */
	private boolean classroomNameSetted = false;
	
		/**
	 * Attribute classroomName is Null Falg
	 */
	private boolean classroomNameNull = false;
	
	   
    /**
	 * Get classroomName
	 * 
	 * @return String
	 */
	final public String getClassroomName(){
	    
				
		if(isClassroomNameNull()){
			return null;
		}
		else{
			return StringUtils.trim(classroomName);
		}
				
	}
	
	/**
	 * Set classroomName
	 * 
	 * @param String
	 */
	final public void setClassroomName(String classroomName ){
		
				
		this.classroomName = StringUtils.trim(classroomName);
				
		this.classroomNameSetted = true;
		
				
				
		this.setClassroomNameNull(this.classroomName == null);
				
				
	}
	
	/**
	 * Get classroomName Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isClassroomNameSetted(){
		return this.classroomNameSetted;
	}
	
		
	/**
	 * Set classroomName Null
	 * 
	 */
	final public void setClassroomNameNull(){
			
		this.classroomNameNull = true;
		
	}	
	
	final public void setClassroomNameNull(boolean aNullFlag){
			
		this.classroomNameNull = aNullFlag;
		
	}	
	
	final public boolean isClassroomNameNull(){
			
		return this.classroomNameNull;
		
	}
	
    	
	   
		
		
		
	private long classroomCapacity;	
	
	/**
	 * Attribute classroomCapacity Be Seted Falg
	 */
	private boolean classroomCapacitySetted = false;
	
		/**
	 * Attribute classroomCapacity is Null Falg
	 */
	private boolean classroomCapacityNull = false;
	
	   
    /**
	 * Get classroomCapacity
	 * 
	 * @return long
	 */
	final public long getClassroomCapacity(){
	    
				
		return classroomCapacity;
				
	}
	
	/**
	 * Set classroomCapacity
	 * 
	 * @param long
	 */
	final public void setClassroomCapacity(long classroomCapacity ){
		
				
		this.classroomCapacity = classroomCapacity;
				
		this.classroomCapacitySetted = true;
		
				
				
		this.setClassroomCapacityNull(false);
				
				
	}
	
	/**
	 * Get classroomCapacity Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isClassroomCapacitySetted(){
		return this.classroomCapacitySetted;
	}
	
		
	/**
	 * Set classroomCapacity Null
	 * 
	 */
	final public void setClassroomCapacityNull(){
			
		this.classroomCapacityNull = true;
		
	}	
	
	final public void setClassroomCapacityNull(boolean aNullFlag){
			
		this.classroomCapacityNull = aNullFlag;
		
	}	
	
	final public boolean isClassroomCapacityNull(){
			
		return this.classroomCapacityNull;
		
	}
	
    	
	   
		
		
		
	private int deleteFlag;	
	
	/**
	 * Attribute deleteFlag Be Seted Falg
	 */
	private boolean deleteFlagSetted = false;
	
		/**
	 * Attribute deleteFlag is Null Falg
	 */
	private boolean deleteFlagNull = false;
	
	   
    /**
	 * Get deleteFlag
	 * 
	 * @return int
	 */
	final public int getDeleteFlag(){
	    
				
		return deleteFlag;
				
	}
	
	/**
	 * Set deleteFlag
	 * 
	 * @param int
	 */
	final public void setDeleteFlag(int deleteFlag ){
		
				
		this.deleteFlag = deleteFlag;
				
		this.deleteFlagSetted = true;
		
				
				
		this.setDeleteFlagNull(false);
				
				
	}
	
	/**
	 * Get deleteFlag Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isDeleteFlagSetted(){
		return this.deleteFlagSetted;
	}
	
		
	/**
	 * Set deleteFlag Null
	 * 
	 */
	final public void setDeleteFlagNull(){
			
		this.deleteFlagNull = true;
		
	}	
	
	final public void setDeleteFlagNull(boolean aNullFlag){
			
		this.deleteFlagNull = aNullFlag;
		
	}	
	
	final public boolean isDeleteFlagNull(){
			
		return this.deleteFlagNull;
		
	}
	
    	
	   
		
		
		
	private String status;	
	
	/**
	 * Attribute status Be Seted Falg
	 */
	private boolean statusSetted = false;
	
		/**
	 * Attribute status is Null Falg
	 */
	private boolean statusNull = false;
	
	   
    /**
	 * Get status
	 * 
	 * @return String
	 */
	final public String getStatus(){
	    
				
		if(isStatusNull()){
			return null;
		}
		else{
			return StringUtils.trim(status);
		}
				
	}
	
	/**
	 * Set status
	 * 
	 * @param String
	 */
	final public void setStatus(String status ){
		
				
		this.status = StringUtils.trim(status);
				
		this.statusSetted = true;
		
				
				
		this.setStatusNull(this.status == null);
				
				
	}
	
	/**
	 * Get status Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isStatusSetted(){
		return this.statusSetted;
	}
	
		
	/**
	 * Set status Null
	 * 
	 */
	final public void setStatusNull(){
			
		this.statusNull = true;
		
	}	
	
	final public void setStatusNull(boolean aNullFlag){
			
		this.statusNull = aNullFlag;
		
	}	
	
	final public boolean isStatusNull(){
			
		return this.statusNull;
		
	}
	
    	
	   
		
		
		
	private String remarks;	
	
	/**
	 * Attribute remarks Be Seted Falg
	 */
	private boolean remarksSetted = false;
	
		/**
	 * Attribute remarks is Null Falg
	 */
	private boolean remarksNull = false;
	
	   
    /**
	 * Get remarks
	 * 
	 * @return String
	 */
	final public String getRemarks(){
	    
				
		if(isRemarksNull()){
			return null;
		}
		else{
			return StringUtils.trim(remarks);
		}
				
	}
	
	/**
	 * Set remarks
	 * 
	 * @param String
	 */
	final public void setRemarks(String remarks ){
		
				
		this.remarks = StringUtils.trim(remarks);
				
		this.remarksSetted = true;
		
				
				
		this.setRemarksNull(this.remarks == null);
				
				
	}
	
	/**
	 * Get remarks Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isRemarksSetted(){
		return this.remarksSetted;
	}
	
		
	/**
	 * Set remarks Null
	 * 
	 */
	final public void setRemarksNull(){
			
		this.remarksNull = true;
		
	}	
	
	final public void setRemarksNull(boolean aNullFlag){
			
		this.remarksNull = aNullFlag;
		
	}	
	
	final public boolean isRemarksNull(){
			
		return this.remarksNull;
		
	}
	
    	
	   
		
						
		
	private String campusName;	
	
	/**
	 * Attribute campusName Be Seted Falg
	 */
	private boolean campusNameSetted = false;
	
		/**
	 * Attribute campusName is Null Falg
	 */
	private boolean campusNameNull = false;
	
	   
    /**
	 * Get campusName
	 * 
	 * @return String
	 */
	final public String getCampusName(){
	    
				
		if(isCampusNameNull()){
			return null;
		}
		else{
			return StringUtils.trim(campusName);
		}
				
	}
	
	/**
	 * Set campusName
	 * 
	 * @param String
	 */
	final public void setCampusName(String campusName ){
		
				
		this.campusName = StringUtils.trim(campusName);
				
		this.campusNameSetted = true;
		
				
				
		this.setCampusNameNull(this.campusName == null);
				
				
	}
	
	/**
	 * Get campusName Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isCampusNameSetted(){
		return this.campusNameSetted;
	}
	
		
	/**
	 * Set campusName Null
	 * 
	 */
	final public void setCampusNameNull(){
			
		this.campusNameNull = true;
		
	}	
	
	final public void setCampusNameNull(boolean aNullFlag){
			
		this.campusNameNull = aNullFlag;
		
	}	
	
	final public boolean isCampusNameNull(){
			
		return this.campusNameNull;
		
	}
	
    	
		
				
		
		
	
	
	public int hashCode() {
		final int prime = 31;
		int result = 1;
				
				
		result = prime * result + (int) (getId() ^ (getId() >>> 32));
						
		return result;
	}
	
	public boolean equals(Object obj) {
	
		if (obj == null){
			return false;
		}
		if ((obj instanceof Classroom) == false){
			return false;
		}
		Classroom other = (Classroom) obj;
		
				
				
		if (getId() != other.getId()){
			return false;
		}
						
		return true;
	
	}	
	
	public String toString(){
	    
		StringBuffer buffer = new StringBuffer();
		
		buffer.append("[");
		
		        
		buffer.append("id=");
		buffer.append(this.id);
		        
		buffer.append("campusId=");
		buffer.append(this.campusId);
		        
		buffer.append("classroomName=");
		buffer.append(this.classroomName);
		        
		buffer.append("classroomCapacity=");
		buffer.append(this.classroomCapacity);
		        
		buffer.append("deleteFlag=");
		buffer.append(this.deleteFlag);
		        
		buffer.append("status=");
		buffer.append(this.status);
		        
		buffer.append("remarks=");
		buffer.append(this.remarks);
		        
		buffer.append("campusName=");
		buffer.append(this.campusName);
				
		buffer.append("]");
		
		return buffer.toString();
	}
	
	
}